let Subject = require('./Subject.js');
let ObserverType1 = require('./ObserverType1.js');
let ObserverType2 = require('./ObserverType2.js');

let obs1 = new ObserverType1(1);
let obs2 = new ObserverType1(2);
let sj = new Subject("bird", [obs1,obs2]);
let obs3 = new ObserverType2(1);
sj.attach(obs3);
sj.setData("dog");
sj.setData("cat");